﻿

using IotContract.Dtos.Clients;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Interfaces.Http;
/// <summary>
/// web api设备交互
/// </summary>
public interface IClientWebService
{

     event EventHandler<IotEquipWarnDto> EquipWarnEvent;

     event EventHandler<string> ErrorEvent;

    event EventHandler<string> ValueChangeEvent;

    /// <summary>
    /// 触发报警
    /// </summary>
    /// <param name="e"></param>
    void InvokeWarnEvent(IotEquipWarnDto e);
    /// <summary>
    /// 触发错误
    /// </summary>
    /// <param name="error"></param>
    void InvokeErrorEvent(string error);
    /// <summary>
    /// 触发值变化
    /// </summary>
    /// <param name="value"></param>
    void InvokeValueChangeEvent(string value);




}
